package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.CmsHonorAward;
import com.ruoyi.system.mapper.CmsHonorAwardMapper;
import com.ruoyi.system.service.ICmsHonorAwardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CmsHonorAwardServiceImpl implements ICmsHonorAwardService {

    @Resource
    private CmsHonorAwardMapper cmsHonorAwardMapper;

    @Override
    public CmsHonorAward selectCmsHonorAwardById(Long honorId) {
        return cmsHonorAwardMapper.selectCmsHonorAwardById(honorId);
    }

    @Override
    public List<CmsHonorAward> selectCmsHonorAwardList(CmsHonorAward honor) {
        return cmsHonorAwardMapper.selectCmsHonorAwardList(honor);
    }

    @Override
    public int insertCmsHonorAward(CmsHonorAward honor) {
        return cmsHonorAwardMapper.insertCmsHonorAward(honor);
    }

    @Override
    public int updateCmsHonorAward(CmsHonorAward honor) {
        return cmsHonorAwardMapper.updateCmsHonorAward(honor);
    }

    @Override
    public int deleteCmsHonorAwardByIds(Long[] honorIds) {
        return cmsHonorAwardMapper.deleteCmsHonorAwardByIds(honorIds);
    }

    @Override
    public int deleteCmsHonorAwardById(Long honorId) {
        return cmsHonorAwardMapper.deleteCmsHonorAwardById(honorId);
    }
}


